package netty.socketio;

public class test {

    String str = new String("good");

    char[] ch = { 'a', 'b', 'c' };
    public static void main(String args[]) {
//        test ex = new test();
//        ex.change(ex.str, ex.ch);
//        System.out.print(ex.str + " and ");
//        System.out.print(ex.ch);

        System.out.println(getValue(2));
    }
    public void change(String str, char ch[]) {
        str = "test ok";
        ch[0] = 'g';
    }



    public static int getValue(int i) {
        int result = 0;
        switch (i) {
            case 1:
            result = result + i;
            case 2:
            result = result + i * 2;
            case 3:
            result = result + i * 3;
        }
        return result;
    }

//    public static void main(String[] args) throws InterruptedException {
//        String h = "hello";
//        String s = "hello";
////        System.err.println(h == s);
//
//
//        String str1 = "hello";
//        String str2 = "he" + new String("llo");
//        System.err.println(str1 == str2);
////        System.err.println(str1.equals(str2));
//    }
}
